<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateCoursesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="mainMenu">
        <h:form>
                <div id="topmenu">
                    <ul>
                        <li >
                            <h:commandLink action="#{usersController.prepareList()}" value="Admin"/>
                        </li>
                        <li>
                            <h:commandLink action="#{classesController.prepareList()}" value="Classes"/>
                        </li>
                        <li class="current">
                            <h:commandLink action="#{coursesController.prepareList()}" value="Courses"/>
                        </li>
                        <li>
                            <h:commandLink action="#{examsController.prepareList()}" value="Examination"/>
                        </li>
                    </ul>
                </div>
                </h:form>
        </ui:define>
        <ui:define name="body">
             <div id="box">
                <h3 id="adduser">Add New Course</h3>
            <h:form id="form">
                <fieldset id="address">
                        <legend>Course</legend>
                        <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateCoursesLabel_courseName}" for="courseName" />
                    <h:inputText id="courseName" value="#{coursesController.selected.courseName}" title="#{bundle.CreateCoursesTitle_courseName}" />
                </h:panelGrid>
                </fieldset>
                <div align="right">
                        <h:commandButton action="#{coursesController.create}" value="#{bundle.CreateCoursesSaveLink}" id="button1" class="button1" />
                    </div>
            </h:form>
             </div>
        </ui:define>
    </ui:composition>

</html>
